#include "widget.h"
#include "ui_widget.h"
#include<QDebug>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    ui->radioButton_other->setEnabled(false);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_radioButton_man_clicked()
{
    //更改Lable
    ui->label->setText("您的性别是:男");
}

void Widget::on_radioButton_woman_clicked()
{
     ui->label->setText("您的性别是:女");
}


void Widget::on_radioButton_other_clicked()
{
     ui->label->setText("您的性别是:人妖？");
}

void Widget::on_radioButton_man_toggled(bool checked)
{
     if(checked) qDebug()<<"改变";
     else qDebug()<<"没改变";
}
